package com.own.component.common.base.service.item;

import com.own.component.common.base.entity.BaseBo;
import com.own.component.common.base.entity.po.BaseBean;
import com.own.component.common.model.UploadModel;
import org.springframework.web.multipart.MultipartFile;

/**
 * BaseImportService
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
public interface BaseImportService<
        PO extends BaseBean,
        BO extends BaseBo<PO>
        > {

    /**
     * 导入数据
     *
     * @param bo   导入的数据对象
     * @param file 导入的文件
     * @return 是否导入成功
     */
    default UploadModel importPo(BO bo, MultipartFile file) {
        return new UploadModel();
    }

}
